﻿@model Storage.Mapping.BucketCut.BucketCutMapping

<div class="row">
    @using (Html.BeginRouteForm("editBucketCut", FormMethod.Post, new { @class = "form-horizontal", onsubmit = "return false;" }))
    {
        @Html.HiddenFor(m => m.Id)
        @Html.HiddenFor(m => m.BucketId)
        @Html.AntiForgeryToken()
        <div class="form-group">
            <label class="col-sm-3 control-label no-padding-right">@RequiredSpan() 剪裁尺寸定义</label>
            <div class="col-sm-8">
                @Html.TextBoxFor(m => m.Value, new { @class = "col-xs-10 col-sm-5", placeholder = "剪裁尺寸定义" })
                @Html.ValidationMessageFor(m => m.Value)
            </div>
        </div>
            <div class="col-md-offset-2 col-md-9">
                <button class="btn btn-info" type="submit">
                    <i class="ace-icon fa fa-check bigger-110"></i>
                    提交
                </button>
            </div>
    }

</div>
<script>
    $(function () {
        $('form').submit(function (e) {
            $.modal.show();
            $(this).ajaxSubmit(function (data) {
                $.modal.gritter(data, function () {
                    window.location.reload();
                });
            });
        });
    });
</script>













